﻿using System.Windows;

namespace ServiceControllerApp
{
    /// <summary>
    /// WaitWindow.xaml 的交互逻辑
    /// </summary>
    public partial class WaitWindow : Window
    {
        public WaitWindow()
        {
            InitializeComponent();
        }

        public bool IsCanClose
        {
            get; set;
        }
        private void CustomClosing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            if (!IsCanClose)
            {
                e.Cancel = true;
            }
        }
    }
}
